/*
 * logger - consists of a simple logger class
 *
 * Copyright (c) 2008 Varun Kumar Reddy Dodla
 * Licensed under GPL (GPL-LICENSE.txt)
 *
 * $Date: 2008-10-16 
 */


function Log(logId) {
	this.id = logId;
}

//constants
Log.prototype.error_color = '#B02B2C';
Log.prototype.message_color = '#006E2E';
Log.prototype.info_color = '#0000CC';


//methods
Log.prototype.show = function(color, msg) {
	$('#' + this.id).prepend(
			"<span style='color: " + color + "'>>>" + msg + "</span><br/>");
}
Log.prototype.error = function(msg) {
	this.show(this.error_color, msg);
}
Log.prototype.message = function(msg) {
	this.show(this.message_color, msg);
}
Log.prototype.info = function(msg) {
	this.show(this.info_color, msg);
}
